package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.LiveEntity;
import yf.mall.vo.LiveVo;

                                        
/**
 * 直播实体
 * 表名 live
 *
 *
 * 
 * @date Thu Sep 10 11:00:34 CST 2020
 */
@Data
public class LiveDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //主题
            @ExcelProperty("主题")
            private String theme;
        
                        //IMG-封面
            @ExcelProperty("IMG-封面")
            private String img;
        
                        //推流地址
            @ExcelProperty("推流地址")
            private String push;
        
                        //拉流地址
            @ExcelProperty("拉流地址")
            private String pull;
        
                        //回放地址
            @ExcelProperty("回放地址")
            private String back;
        
                        //streamName名称
            @ExcelProperty("streamName名称")
            private String streamName;
        
                        //开始时间
            @ExcelProperty("开始时间")
            private Date start;
        
                        //结束时间
            @ExcelProperty("结束时间")
            private Date end;
        
                        //用户id
            @ExcelProperty("用户id")
            private Long userId;
        
    
    public LiveDown() {

    }

    public LiveDown(LiveVo vo) {
        LiveEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setTheme(entity.getTheme());
            
                                    this.setImg(entity.getImg());
            
                                    this.setPush(entity.getPush());
            
                                    this.setPull(entity.getPull());
            
                                    this.setBack(entity.getBack());
            
                                    this.setStreamName(entity.getStreamName());
            
                                    this.setStart(entity.getStart());
            
                                    this.setEnd(entity.getEnd());
            
                                    this.setUserId(entity.getUserId());
            
            }


}
